package org.ehe.ai.domain;

import com.baomidou.mybatisplus.annotation.TableLogic;
import org.ehe.common.mybatis.core.domain.BaseEntity2;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author :zhangnn
 * @className :ChatAccessLog
 * @description: TODO
 * @date 2025-08-23 09:13:59
 */
@Data
@Accessors(chain = true)
@TableName("chat_access_log")
public class ChatAccessLog {

    @TableId(type = IdType.AUTO)
    private Long id;

    private String sessionId;
    private String userId;
    private String requestContent;
    private String responseContent;
    private String ipAddress;
    private String userAgent;
    private Integer responseTime;
    private BigDecimal apiCost;
    private Date createTime;
    private Date updateTime;
    private String tenantId;

    @TableLogic
    private String delFlag;

    private String createBy;

    private String updateBy;
}
